package com.hsgene.user.dto.user.manager;

import com.hsgene.user.domain.ManagerAccount;

import java.io.Serializable;

/**
 * 超级管理员信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/17
 */
public class SuperManager implements Serializable {

    private static final long serialVersionUID = 6657231045969256006L;

    /**
     * 登录账号
     */
    private String userName;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 账号绑定手机号码
     */
    private String phone;

    /**
     * 供应商id（0表示为运营后台超级管理员）
     */
    private Long supplierId;

    /**
     * 是否删除
     */
    private Boolean deleted;

    public SuperManager() {
    }

    public SuperManager(ManagerAccount account) {
        this.userName = account.getUserName();
        this.phone = account.getPhone();
        this.supplierId = account.getSupplierId();
        this.deleted = account.getDeleted();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}